<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>用户详情</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		
		<li class="active">用户详情</li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="cloudfactoryUser" action="${ctx}/cloudfactory/cloudfactoryUser/audit" method="post" class="form-horizontal">
		<form:hidden path="id"/> 
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">帐号信息：</label>
			<div class="controls">
				${fns:getDictLabel(cloudfactoryUser.isApprove, 'user_status', '')}
			</div>
		</div>
		
		
		<div class="control-group">
			<label class="control-label">用户名：</label>
			<div class="controls">
				<form:input path="name"  readonly="readonly" htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">手机号：</label>
			<div class="controls">
				<form:input path="mobile" readonly="readonly"  htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">邮箱：</label>
			<div class="controls">
				<form:input path="email" readonly="readonly"  htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<br>
		
		企业信息
		<br>
		<div class="control-group">
			<label class="control-label">企业名称：</label>
			<div class="controls">
				<form:input path="companyName" readonly="readonly"  htmlEscape="false" maxlength="13" class="input-xlarge "/>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">企业简介：</label>
			
			<div class="controls">
				<form:textarea path="companyShort" readonly="readonly"  htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业地址：</label>
			<div class="controls">
				<form:input path="address"  readonly="readonly" htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">LOGO：</label>
			<div class="controls">
				<img src="${ctxStatic}/cloudfactory/img/myFactory/buliding.png" alt="">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">营业执照：</label>
			<div class="controls">
				<img class="titleTextBackgroundImg1" src="${ctxStatic}/cloudfactory/img/myFactory/head.png" alt="">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">行业：</label>
			<div class="controls">
				<form:input path="trade" readonly="readonly"  htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">联系人：</label>
			<div class="controls">
				<form:input path="contact" readonly="readonly"  htmlEscape="false" maxlength="64" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">联系电话：</label>
			<div class="controls">
				<form:input path="contactMobile" readonly="readonly"  htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">联系邮箱：</label>
			<div class="controls">
				<form:input path="contactEmail" readonly="readonly"  htmlEscape="false" maxlength="64" class="input-xlarge "/>
			</div>
		</div>
		
		<div class="form-actions">
		<c:if test="${cloudfactoryUser.isApprove=='3' }">
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="审核"/>&nbsp;</c:if>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>